package com.chengliang.zuoye.mapper;

import com.chengliang.zuoye.bean.User;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface UserMapper extends Mapper<User> {

    User findUserByEmail(String email);

    boolean register(User user);

    boolean updateUserById(User user);

    boolean updateUserManyById(User user);

    List<User> selectUserList(User user);

    boolean addUser(User user);

    User getUserById(Integer id);

}
